<template>
  <el-form :inline="true">
      <el-button size="small" @click="runReport" type="primary">{{$t('custom.dashboard.layoutItem.runReportTitle')}}</el-button>
  </el-form>
</template>

<script>
import mixinGadgetViewModule from '@/mixins/gadget-view-module'
export default {
  mixins: [mixinGadgetViewModule],
  data () {
    return {
      mixinViewModuleOptions: {
        pageId: this.pageId
      }
    }
  },
  created () {
    this.subscribeMessage('GadgetsReady', this.runReport)
    this.$store.state.isWidget = false
  },
  methods: {
    runReport () {
      this.publishMessage('runReport')
    }

  }
}
</script>
<style scoped>

</style>
